package com.nuanqian.springbootcommon.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseBean<T> implements Serializable {

    private Integer code;

    private String msg;

    public T data;

    public ResponseBean(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public ResponseBean(Integer code, T data) {
        this.code = code;
        this.data = data;
    }



}
